/*
 * Copyright 2017 Palantir Technologies, Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

const ns = "[Blueprint Table]";

export const QUADRANT_ON_SCROLL_UNNECESSARILY_DEFINED =
    ns + ` TableQuadrant onScroll need not be defined for any quadrant aside from the MAIN quadrant.`;

export const TABLE_EXPAND_FOCUSED_REGION_MULTI_COLUMN_REGION =
    ns + ` Table cannot expand a FULL_COLUMNS selection using a multi-column region.`;
export const TABLE_EXPAND_FOCUSED_REGION_MULTI_ROW_REGION =
    ns + ` Table cannot expand a FULL_COLUMNS selection using a multi-row region.`;
export const TABLE_NON_COLUMN_CHILDREN_WARNING = ns + ` Children of Table must be Columns"`;
export const TABLE_NUM_FROZEN_COLUMNS_BOUND_WARNING =
    ns + ` Table numFrozenColumns must be in less than or equal to the number of columns. Clamping the value for you.`;
export const TABLE_NUM_FROZEN_COLUMNS_NEGATIVE =
    ns + ` Table requires numFrozenColumns to be greater than or equal to 0.`;
export const TABLE_NUM_FROZEN_ROWS_BOUND_WARNING =
    ns + ` Table numFrozenRows must be less than or equal to numRows. Clamping the value for you.`;
export const TABLE_NUM_FROZEN_ROWS_NEGATIVE = ns + ` Table requires numFrozenRows to be greater than or equal to 0.`;
export const TABLE_NUM_ROWS_ROW_HEIGHTS_MISMATCH =
    ns + ` Table requires rowHeights.length to equal numRows when both props are provided.`;
export const TABLE_NUM_ROWS_NEGATIVE = ns + ` Table requires numRows to be greater than or equal to 0.`;
export const TABLE_NUM_COLUMNS_COLUMN_WIDTHS_MISMATCH =
    ns + ` Table requires columnWidths.length to equal the number of <Column>s if provided.`;

export const TABLE_UNMOUNTED_RESIZE_WARNING = `${ns} Table resize method called while component is unmounted, this is a no-op.`;

export const TABLE_INVALID_CELL_RENDERER_DEPS = `${ns} cellRendererDependencies should either always be defined or undefined; this feature cannot be enabled during the component lifecycle`;

export const TABLE_COPY_FAILED = ns + ` Copy failed.`;
